/* 
    用户相关的api
*/

import http from '../utils/http'

export function userData(params){
    return http.get('api/data/user', params)
}

export function addUserInfo(params){
    return http.post('api/data/user', params)
}

export function editUserInfo(params){
    return http.put('api/data/user', params)
}

export function deltUserInfo(params){
    return http.delete('api/data/user', params)
}

export function searchUserInfo(params){
    return http.get('api/data/user/search', params)
}

export function login(params){
    return http.post('api/login', params)
}